package com.zyq.model.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import java.util.Date;

/**
 * @author: zyq
 * @create: 2021-12-08
 **/
@Data
@Accessors(chain = true)
public class HealthInformation {

    @ApiModelProperty("id")
    private Long id;

    /** 用户id */
    @Column(name="user_id")
    @ApiModelProperty("用户id")
    private Long userId;

    /** 用户名 */
    @Column(name = "user_name")
    @ApiModelProperty("用户名")
    private String userName;

    /** 风险等级 */
    @ApiModelProperty("风险等级")
    private String level;

    /** 健康测评得分 */
    @ApiModelProperty("健康测评得分")
    private Long score;

    /** 糖尿病类型 */
    @ApiModelProperty("糖尿病类型")
    private String type;

    /** 确诊时间 */
    @Column(name = "time_of_diagnosis")
    @ApiModelProperty("确诊时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date timeOfDiagnosis;

    @ApiModelProperty("风险小提示")
    private String tips;
}
